/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ua.epam.muzalevskiy.third_project;

import java.io.File;
import ua.epam.muzalevskiy.third_project.XMLParsers.DomParser;
import ua.epam.muzalevskiy.third_project.XMLParsers.SaxParser;
import ua.epam.muzalevskiy.third_project.XMLParsers.StaxParser;
import ua.epam.muzalevskiy.third_project.XMLParsers.Validator;
import ua.epam.muzalevskiy.third_project.XMLParsers.XMLParser;

/**
 * Main class of the project.
 *
 * @author Muzalevskiy Vitaliy
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        XMLParser parser1 = new DomParser();
        XMLParser parser2 = new SaxParser();
        XMLParser parser3 = new StaxParser();
        Validator validator = new Validator();
        String fileName = new String("src/ua/epam/muzalevskiy/third_project/Knife.xml");
        validator.validate(fileName);
        parser1.parse(fileName);
        System.out.println(parser1.getKnifeList());
        System.out.println("");
        parser2.parse(fileName);
        System.out.println(parser2.getKnifeList());
        System.out.println("");
        parser3.parse(fileName);
        System.out.println(parser3.getKnifeList());
    }
}
